package edu.kjxy.day01.useStopMethodThreadTest;

/**
 * 功能:暴力停止，使用stop()方法停止线程
 * 作者:程序员欧阳子韩
 * 日期:2024/1/31 20:56
 */
public class RunTest {
    public static void main(String[] args) {
        try {
            MyThread myThread = new MyThread();
            myThread.start();
            Thread.sleep(8000);
            myThread.stop();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
